const { app, express } = require("./config/index");
const { install: login } = require("./router/login/index");
const { install: user } = require("./router/user");
const { install: lishi } = require("./router/lishi");
const { install: anim } = require("./router/anim");
const { install: news } = require("./router/news");
const { install: sc } = require("./router/sc");
const { install: execl } = require("./router/file");
app.get("/", function (req, res, next) {
  res.json({
    version: "测试版本后端系统",
  });
});

app.use("/login", login(express));
app.use("/user", user(express));
app.use("/lishi", lishi(express));
app.use("/anim", anim(express));
app.use("/news", news(express));
app.use("/sc", sc(express));
app.use("/file", execl(express));
app.listen(3000);

module.exports = app;
